package com.tang.framework.component.security.model;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

@Data
public class PermissionAuthority implements GrantedAuthority {

    public PermissionAuthority(String permission) {
        this.permission = permission;
    }

    public PermissionAuthority() {
    }

    private String permission;

    @Override
    public String getAuthority() {
        return permission;
    }
}
